{include file="index/head" /}
<div class="box">
  <form method="post" action="{:url('dels')}" id="listform" data-type=ajax>
  <div class="box-head">
    <ul class="search">
      <li><a href="{:url('addschool')}" class="btn"><i class="icon-plus-square-o"></i>添加校院</a></li>
      <li><span>搜索：</span></li>
      <li>
        <span>学院名称</span>
        <input type="text" class="intxt" name="school_name" placeholder="请输入学院名称" />
      </li>
      <li>
        <button type="button" class="btn" onclick="sycms.search('{:url('school')}')"><i class="icon-search"></i> 搜索</button>
      </li>
    </ul>
  <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a>
  </div>
  <table class="table">
    <tr>
      <th>ID</th>
      <th>学院名称</th>
      <th>学院LOGO</th>
      <th>地区</th>
      <th>类型</th>
      <th>属性</th>
      <th>创建时间</th>
      <th width="350">操作</th>
    </tr>
    {volist name="list" id="vo"}
    <tr>
      <td>{$vo.id}</td>
      <td>{$vo.school_name}</td>
      <td><img src="{$vo.school_logo}" width="50" /></td>   
      <td>
        {switch vo.city_id }
            {case 1}北京{/case}
            {case 2}天津{/case}
            {case 3}河北{/case}
            {case 4 }山西{/case}
            {case 5}内蒙古{/case}
            {case 6}辽宁{/case}
            {case 7 }吉林{/case}
            {case 8}黑龙江{/case}
            {case 9}上海{/case}
            {case 10 }江苏{/case}
            {case 11}浙江{/case}
            {case 12}安徽{/case}
            {case 13 }福建{/case}
            {case 14}江西{/case}
            {case 15}山东{/case}
            {case 16 }河南{/case}
            {case 17}湖北{/case}
            {case 18}湖南{/case}
            {case 19 }广东{/case}
            {case 20}广西{/case}
            {case 21}海南{/case}
            {case 22 }重庆{/case}
            {case 23}四川{/case}
            {case 24}贵州{/case}
            {case 25 }云南{/case}
            {case 26}西藏{/case}
            {case 27}陕西{/case}
            {case 28 }甘肃{/case}
            {case 29}青海{/case}
            {case 30}宁夏{/case}
            {case 31 }新疆{/case}
            {case 32}台湾{/case}
            {case 33}香港{/case}
            {case 34 }澳门{/case}
            {default /}全国
        {/switch}
      </td>
      <td>
        {switch vo.type }
            {case 2}成考院校{/case}
            {case 1}自考院校{/case}
            {case 3}网教院校{/case}
            {case 4}国开电大{/case}
            {default /}同等学力申硕
        {/switch}
      </td>
      <td>{$vo.hot == 1 ? '<span style="color: red;">热门</span>' : '--'}</td>
      <td>{$vo.creat_time}</td>
      <td>
        <a href="{:url('addschool',['id'=>$vo.id])}" class="btn"><i class="icon-edit"></i> 编辑</a>
        <a href="javascript:void(0);" onclick="sycms.del('{:url('delschool',['id'=>$vo.id])}')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
      </td>
    </tr>
    {/volist}
    <tr>
      <td colspan="8"><div class="page">{$page}</div></td>
    </tr>
  </table>
</form>
</div>

